// HMR fixtures are created by logging the data object in HMRClient.
// These errors mostly come from https://github.com/facebook/metro/blob/a3fac645dc377f78bd4182ca0ca73629b2707d5b/packages/metro/src/HmrServer.js#L331

export const syntax_error = {
  type: 'TransformError',
  lineNumber: 5,
  column: 0,
  filename: '__e2e__/05-errors/app/index.tsx',
  errors: [
    {
      description:
        "SyntaxError: /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: Unexpected token (5:0)\n\n\u001b[0m \u001b[90m 3 |\u001b[39m\n \u001b[90m 4 |\u001b[39m \u001b[90m// import './foobar';\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 5 |\u001b[39m \u001b[33m>\u001b[39m\n \u001b[90m   |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 6 |\u001b[39m\n \u001b[90m 7 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 8 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
      filename: '__e2e__/05-errors/app/index.tsx',
      lineNumber: 5,
    },
  ],
  name: 'SyntaxError',
  message:
    "SyntaxError: /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: Unexpected token (5:0)\n\n\u001b[0m \u001b[90m 3 |\u001b[39m\n \u001b[90m 4 |\u001b[39m \u001b[90m// import './foobar';\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 5 |\u001b[39m \u001b[33m>\u001b[39m\n \u001b[90m   |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 6 |\u001b[39m\n \u001b[90m 7 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 8 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
  stack:
    "SyntaxError: /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: Unexpected token (5:0)\n\n\u001b[0m \u001b[90m 3 |\u001b[39m\n \u001b[90m 4 |\u001b[39m \u001b[90m// import './foobar';\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 5 |\u001b[39m \u001b[33m>\u001b[39m\n \u001b[90m   |\u001b[39m \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 6 |\u001b[39m\n \u001b[90m 7 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 8 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m\n    at constructor (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:360:19)\n    at TypeScriptParserMixin.raise (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:3327:19)\n    at TypeScriptParserMixin.unexpected (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:3347:16)\n    at TypeScriptParserMixin.parseExprAtom (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:11116:16)\n    at TypeScriptParserMixin.parseExprAtom (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:6937:20)\n    at TypeScriptParserMixin.parseExprSubscripts (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10748:23)\n    at TypeScriptParserMixin.parseUpdate (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10733:21)\n    at TypeScriptParserMixin.parseMaybeUnary (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10713:23)\n    at TypeScriptParserMixin.parseMaybeUnary (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:9662:18)\n    at TypeScriptParserMixin.parseMaybeUnaryOrPrivate (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10566:61)\n    at TypeScriptParserMixin.parseExprOps (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10571:23)\n    at TypeScriptParserMixin.parseMaybeConditional (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10548:23)\n    at TypeScriptParserMixin.parseMaybeAssign (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10511:21)\n    at TypeScriptParserMixin.parseMaybeAssign (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:9611:20)\n    at TypeScriptParserMixin.parseExpressionBase (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10465:23)\n    at /Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10461:39\n    at TypeScriptParserMixin.allowInAnd (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12085:16)\n    at TypeScriptParserMixin.parseExpression (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:10461:17)\n    at TypeScriptParserMixin.parseStatementContent (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12529:23)\n    at TypeScriptParserMixin.parseStatementContent (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:9334:18)\n    at TypeScriptParserMixin.parseStatementLike (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12396:17)\n    at TypeScriptParserMixin.parseModuleItem (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12373:17)\n    at TypeScriptParserMixin.parseBlockOrModuleBlockBody (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12950:36)\n    at TypeScriptParserMixin.parseBlockBody (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12943:10)\n    at TypeScriptParserMixin.parseProgram (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12270:10)\n    at TypeScriptParserMixin.parseTopLevel (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:12260:25)\n    at TypeScriptParserMixin.parse (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:14110:10)\n    at TypeScriptParserMixin.parse (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:9957:18)\n    at parse (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/parser/lib/index.js:14123:26)\n    at parser (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/parser/index.js:41:34)\n    at parser.next (<anonymous>)\n    at normalizeFile (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/transformation/normalize-file.js:64:37)\n    at normalizeFile.next (<anonymous>)\n    at run (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/transformation/index.js:22:50)\n    at run.next (<anonymous>)\n    at transform (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/transform.js:22:33)\n    at transform.next (<anonymous>)\n    at evaluateSync (/Users/evanbacon/Documents/GitHub/expo/node_modules/gensync/index.js:251:28)\n    at sync (/Users/evanbacon/Documents/GitHub/expo/node_modules/gensync/index.js:89:14)\n    at stopHiding - secret - don't use this - v1 (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js:47:12)\n    at Object.transformSync (/Users/evanbacon/Documents/GitHub/expo/node_modules/@babel/core/lib/transform.js:42:76)\n    at parseWithBabel (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/transformSync.js:74:18)\n    at transformSync (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/transformSync.js:54:16)\n    at Object.transform (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/babel-transformer.js:115:58)\n    at transformJSWithBabel (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/transform-worker/metro-transform-worker.js:470:47)\n    at Object.transform (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/transform-worker/metro-transform-worker.js:583:12)\n    at Object.transform (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/metro-config/build/transform-worker/transform-worker.js:127:23)\n    at transformFile (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Worker.flow.js:54:36)\n    at Object.transform (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Worker.flow.js:30:10)\n    at execFunction (/Users/evanbacon/Documents/GitHub/expo/node_modules/jest-worker/build/workers/processChild.js:149:17)",
};

export const missing_file = {
  originModulePath:
    '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx',
  targetModuleName: './foobar',
  message:
    "Unable to resolve module ./foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: \n\nNone of these files exist:\n  * __e2e__/05-errors/app/foobar(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css)\n  * __e2e__/05-errors/app/foobar\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'./foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
  cause: {
    candidates: {
      file: {
        type: 'sourceFile',
        filePathPrefix: '__e2e__/05-errors/app/foobar',
        candidateExts: [
          '',
          '.web.ts',
          '.ts',
          '.web.tsx',
          '.tsx',
          '.web.mjs',
          '.mjs',
          '.web.js',
          '.js',
          '.web.jsx',
          '.jsx',
          '.web.json',
          '.json',
          '.web.cjs',
          '.cjs',
          '.web.scss',
          '.scss',
          '.web.sass',
          '.sass',
          '.web.css',
          '.css',
        ],
      },
      dir: {
        type: 'sourceFile',
        filePathPrefix: '__e2e__/05-errors/app/foobar',
        candidateExts: [],
      },
    },
    name: 'Error',
    message:
      'The module could not be resolved because none of these files exist:\n\n  * /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/foobar(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css)\n  * /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/foobar',
    stack:
      'Error: The module could not be resolved because none of these files exist:\n\n  * /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/foobar(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css)\n  * /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/foobar\n    at upstreamResolveRequest (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:48:13)\n    at resolveRequest (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:94:20)\n    at upstreamResolveRequest (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:36:12)\n    at firstResolver (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:94:20)\n    at firstResolver (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:108:16)\n    at resolveRequest (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:137:16)\n    at Object.resolve (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:36:12)\n    at ModuleResolver.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:74:31)\n    at DependencyGraph.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph.js:239:43)\n    at /Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/lib/transformHelpers.js:165:21',
  },
  errors: [
    {
      description:
        "Unable to resolve module ./foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: \n\nNone of these files exist:\n  * __e2e__/05-errors/app/foobar(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css)\n  * __e2e__/05-errors/app/foobar\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'./foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
    },
  ],
  name: 'Error',
  stack:
    "Error: Unable to resolve module ./foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: \n\nNone of these files exist:\n  * __e2e__/05-errors/app/foobar(.web.ts|.ts|.web.tsx|.tsx|.web.mjs|.mjs|.web.js|.js|.web.jsx|.jsx|.web.json|.json|.web.cjs|.cjs|.web.scss|.scss|.web.sass|.sass|.web.css|.css)\n  * __e2e__/05-errors/app/foobar\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'./foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m\n    at ModuleResolver.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:114:15)\n    at DependencyGraph.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph.js:239:43)\n    at /Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/lib/transformHelpers.js:165:21\n    at resolveDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)\n    at visit (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)\n    at async Promise.all (index 0)\n    at buildSubgraph (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:103:3)\n    at Graph._buildDelta (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Graph.js:157:22)\n    at Graph.traverseDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Graph.js:49:19)\n    at DeltaCalculator._getChangedDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:187:42)",
};

export const missing_node_module = {
  originModulePath:
    '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx',
  targetModuleName: 'foobar',
  message:
    "Unable to resolve module foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: foobar could not be found within the project or in these directories:\n  node_modules\n  ../../node_modules\n  ../../../node_modules\n  node_modules\n  ../../node_modules\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
  cause: {
    dirPaths: [
      '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/apps/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/node_modules',
      '/Users/evanbacon/Documents/GitHub/node_modules',
      '/Users/evanbacon/Documents/node_modules',
      '/Users/evanbacon/node_modules',
      '/Users/node_modules',
      '/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules',
      '/Users/evanbacon/Documents/GitHub/expo/node_modules',
    ],
    extraPaths: [],
    name: 'Error',
    message:
      'Module does not exist in the Haste module map or in these directories:\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/node_modules\n  /Users/evanbacon/Documents/GitHub/node_modules\n  /Users/evanbacon/Documents/node_modules\n  /Users/evanbacon/node_modules\n  /Users/node_modules\n  /node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/node_modules\n',
    stack:
      'Error: Module does not exist in the Haste module map or in these directories:\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/node_modules\n  /Users/evanbacon/Documents/GitHub/node_modules\n  /Users/evanbacon/Documents/node_modules\n  /Users/evanbacon/node_modules\n  /Users/node_modules\n  /node_modules\n  /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/node_modules\n  /Users/evanbacon/Documents/GitHub/expo/node_modules\n\n    at upstreamResolveRequest (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:193:9)\n    at resolveRequest (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:94:20)\n    at upstreamResolveRequest (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:36:12)\n    at firstResolver (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:94:20)\n    at firstResolver (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:108:16)\n    at resolveRequest (/Users/evanbacon/Documents/GitHub/expo/packages/@expo/cli/src/start/server/metro/withMetroResolvers.ts:137:16)\n    at Object.resolve (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro-resolver/src/resolve.js:36:12)\n    at ModuleResolver.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:74:31)\n    at DependencyGraph.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph.js:239:43)\n    at /Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/lib/transformHelpers.js:165:21',
  },
  errors: [
    {
      description:
        "Unable to resolve module foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: foobar could not be found within the project or in these directories:\n  node_modules\n  ../../node_modules\n  ../../../node_modules\n  node_modules\n  ../../node_modules\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m",
    },
  ],
  name: 'Error',
  stack:
    "Error: Unable to resolve module foobar from /Users/evanbacon/Documents/GitHub/expo/apps/router-e2e/__e2e__/05-errors/app/index.tsx: foobar could not be found within the project or in these directories:\n  node_modules\n  ../../node_modules\n  ../../../node_modules\n  node_modules\n  ../../node_modules\n\u001b[0m \u001b[90m 2 |\u001b[39m \u001b[36mimport\u001b[39m { \u001b[33mText\u001b[39m\u001b[33m,\u001b[39m \u001b[33mView\u001b[39m } \u001b[36mfrom\u001b[39m \u001b[32m'react-native'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m 3 |\u001b[39m\n\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 4 |\u001b[39m \u001b[36mimport\u001b[39m \u001b[32m'foobar'\u001b[39m\u001b[33m;\u001b[39m\n \u001b[90m   |\u001b[39m         \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\n \u001b[90m 5 |\u001b[39m\n \u001b[90m 6 |\u001b[39m \u001b[36mexport\u001b[39m \u001b[36mdefault\u001b[39m \u001b[36mfunction\u001b[39m \u001b[33mApp\u001b[39m() {\n \u001b[90m 7 |\u001b[39m   \u001b[36mreturn\u001b[39m (\u001b[0m\n    at ModuleResolver.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:150:15)\n    at DependencyGraph.resolveDependency (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/node-haste/DependencyGraph.js:239:43)\n    at /Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/lib/transformHelpers.js:165:21\n    at resolveDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)\n    at visit (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)\n    at async Promise.all (index 0)\n    at buildSubgraph (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/buildSubgraph.js:103:3)\n    at Graph._buildDelta (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Graph.js:157:22)\n    at Graph.traverseDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/Graph.js:49:19)\n    at DeltaCalculator._getChangedDependencies (/Users/evanbacon/Documents/GitHub/expo/node_modules/metro/src/DeltaBundler/DeltaCalculator.js:187:42)",
};
